//
//  RecommandQRCodeView.h
//  PPDL
//
//  Created by 王洋 on 2019/9/4.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RecommandModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, LLSHitTestType) {
    /**
     *  @author Liulishuo
     *
     *  正常
     */
    LLSHitTestTypeNormal,
    /**
     *  @author Liulishuo
     *
     *  不响应事件 && 不截断响应链
     */
    LLSHitTestTypeIgnore,
    /**
     *  @author Liulishuo
     *
     *  可超出父视图范围响应
     *  其上子视图的hit－testing规则全部失效
     */
    LLSHitTestTypeNoClip,
    
};

@interface RecommandQRCodeView : UIView

@property (nonatomic, assign) LLSHitTestType hitTestType;


@property (weak, nonatomic) IBOutlet UIView *QRBGView;

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UILabel *userName;

@property (weak, nonatomic) IBOutlet UILabel *recommandLab;

@property (weak, nonatomic) IBOutlet UIImageView *QRCodeImage;

@property (weak, nonatomic) IBOutlet UIButton *shareBtn;

@property (nonatomic, copy) void(^shareActionBlock)(void);

- (void)fillBGWithModel:(RecommandModel *)model;

@end

NS_ASSUME_NONNULL_END
